package entity;

import lombok.Data;

@Data
public class Result<T> {
    private boolean flag;//是否成功
    private Integer code;//返回码
    private String msg;//返回信息
    private Object data;//返回数据

    public Result(boolean flag, Integer code, String msg, Object data) {
        this.flag = flag;
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Result(boolean flag, Integer code, String msg) {
        this.flag = flag;
        this.code = code;
        this.msg = msg;
    }

    public Result() {
    }


}

